<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @copyright   Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<div class="page-actions"><?php echo $this->getButtonsHtml() ?></div>
<div class="fieldset-wrapper">
    <div class="fieldset-wrapper-title">
        <span class="title"><?php echo __('Transaction Data'); ?></span>
    </div>
    <div id="log_details_fieldset" class="log-details">
        <table cellspacing="0" class="log-info data-table">
            <tbody>
            <tr>
                <th><?php echo __('Transaction ID'); ?></th>
                <td><?php echo $this->getTxnIdHtml() ?></td>
            </tr>
            <tr>
                <th><?php echo __('Parent Transaction ID'); ?></th>
                <td>
                    <?php if ($this->getParentTxnIdHtml()): ?>
                    <a href="<?php echo $this->getParentTxnIdUrlHtml() ?>">
                        <?php echo $this->getParentTxnIdHtml(); ?>
                    </a>
                    <?php else : ?>
                    <?php echo __('N/A'); ?>
                    <?php endif; ?>
                </td>
            </tr>
            <tr>
                <th><?php echo __('Order ID'); ?></th>
                <td>
                    <a href="<?php echo $this->getOrderIdUrlHtml(); ?>">
                        <?php echo $this->getOrderIncrementIdHtml() ?>
                    </a>
                </td>
            </tr>
            <tr>
                <th><?php echo __('Transaction Type'); ?></th>
                <td><?php echo $this->getTxnTypeHtml() ?></td>
            </tr>
            <tr>
                <th><?php echo __('Is Closed'); ?></th>
                <td><?php echo $this->getIsClosedHtml(); ?></td>
            </tr>
            <tr>
                <th><?php echo __('Created At'); ?></th>
                <td><?php echo $this->getCreatedAtHtml(); ?></td>
            </tr>
            </tbody>
        </table>
    </div>
</div>

<div class="fieldset-wrapper">
    <div class="fieldset-wrapper-title">
        <span class="title""><?php echo __('Child Transactions'); ?></span>
    </div>
    <div class="log-details-grid">
        <?php echo $this->getChildHtml('child_grid') ?>
    </div>
</div>

<div class="fieldset-wrapper">
    <div class="fieldset-wrapper-title">
        <span class="title"><?php echo __('Transaction Details'); ?></span>
    </div>
    <div class="log-details-grid">
        <?php echo $this->getChildHtml('detail_grid') ?>
    </div>
</div>
